#include "instruction1.h"

//#include "led.h"
#include <string.h>
//#include "stdio.h"
#define Max_Num_instruction 9
#define Max_Length_instruction 10
extern char*str1;

extern int  instruction_if(char *lpcszParam)
{ int n=0;

	
	static char strParam[][Max_Length_instruction] =
				{
				"VOLUME","OPEN","SOUND","STOP","CODE_EVENT","PLAYNUM","AUTO","PLAY","DOWN","UP"
				};
   for( n=0; n<Max_Num_instruction; n++)
   //if ((str1=strstr(  ,strParam[n]))!=NULL)
		 if((str1=strstr(lpcszParam,strParam[n]))!=NULL	)
			//if(*lpcszParam==*strParam[n])
      break;
		 return n;
		/*
		switch (a) 
				{
				case VOLUME:
					
					break;
				case OPEN:
					
					break;
				case SOUND:				
					
					break;
				case STOP:				
					
					break;
				case CODE_EVENT:				
					
					break;
				case PLAYNUM:				
					
					break;
				case AUTO:				
					
					break;
				case PLAY:				
					
					break;
				case DOWN:				
					
					break;
				case UP:				
					
					break;

						//	default:

				}
				*/
}
